package com.wlz.dependencies;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author wlz
 * @date 2022-05-25  9:07 下午
 */
public class InstanceB {

	@Autowired
	private InstanceA instanceA;


	public InstanceA getInstanceA() {
		return instanceA;
	}

	public void setInstanceA(InstanceA instanceA) {
		this.instanceA = instanceA;
	}

	public InstanceB(InstanceA instanceA) {
		this.instanceA = instanceA;
	}


	public InstanceB() {
		System.out.println("InstanceB实例化");
	}
}
